package cn.tedu.tmall.admin.content.dao.repository;

import cn.tedu.tmall.admin.content.pojo.po.ArticleDetailPO;
import cn.tedu.tmall.admin.content.pojo.po.ArticlePO;
import cn.tedu.tmall.common.pojo.vo.PageData;

/**
 * 数据操作层-文章接口
 */
public interface IArticleRepository {

    Integer countArticleByTitle(String title);

    Integer saveArticle(ArticlePO articlePO);

    Integer saveArticleDetail(ArticleDetailPO articleDetailPO);

    PageData<ArticlePO> selectList(Long categoryId, Integer pageNum, Integer pageSize);

    ArticlePO selectBasicInfo(Long articleId);

    ArticleDetailPO selectDetail(Long articleId);
}
